import Vue from 'vue'
import App from './App.vue'
import router from "./router/index.js"
import params from "./utils/global.params"
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import '@/assets/style/element-ui/element-variables.scss'
import "../public/js/jquery.min.js"
// sparkline 图表
import "../public/js/jquery.sparkline.min.js"
// peity图表
import "../public/js/jquery.peity.min.js"
import "../public/js/bignumber.js"
// 滚动条支持
import GeminiScrollbar from 'vue-gemini-scrollbar'
// import "./utils/vue.propurty.js"
Vue.config.productionTip = false

Vue.prototype.$web_title = params.web_title
require("./mock/index.js")

// 接口请求，原型挂载
import api from "@/axios/api"
Vue.prototype.$api = api;

// k线图的引入
import Vemap from 'v-charts/lib/candle.common'
import Veline from 'v-charts/lib/line.common'
Vue.component('ve-candle', Vemap)
Vue.component('ve-line', Veline)

// 工具函数的引入
import utils from "./utils/index"
Vue.prototype.$utils = utils.modules

import axios from "axios"
Vue.prototype.axios = axios;
Vue.use(ElementUI);
Vue.use(GeminiScrollbar);
new Vue({
  router,
  render: h => h(App),
}).$mount('#app')
